<admintpl file="header" />

</head>
<body>
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li class="active"><a href="{:U('department/index')}">单位管理</a></li>
            <li><a href="{:U('department/add')}">添加单位</a></li>
        </ul>
        <form class="well form-search form-inline" method="post" action="{:U('department/index')}">
            <div class="form-group">
                <label class="sr-only">部门名称</label>
                <input type="text" name="dept_name" class="form-control" value="{:I('request.dept_name/s','')}" placeholder="输入单位名称过滤...">
            </div>
            <button class="btn btn-primary" type="submit">搜索</button>
            <a class="btn btn-warning" href="{:U('department/index')}">清空</a>
        </form>
        <table class="table table-hover table-bordered table-condensed table-striped table-hover ">
            <thead>
                <tr>
                    <th class="hidden" style="width:50px;">编号</th>
                    <th>单位名称</th>
                    <th>单位简称</th>
                    <th>单位等级</th>
                    <th>创建人</th>
                    <th>创建时间</th>
                    <th>最后修改时间</th>
                    <th width="100">{:L('ACTIONS')}</th>
                </tr>
            </thead>
            <tbody>
                <foreach name="depts" item="vo">
                    <tr>
                        <td class="hidden">{$vo.id}</td>
                        <td>{$vo.department_name}</td>
                        <td>{$vo.department_code}</td>
                        <td>{$vo.name}</td>
                        <td>{$vo.real_name}</td>
                        <td>{$vo.add_time}</td>
                        <td>{$vo.last_time}</td>
                        <td>
                            <a href='{:U("department/edit",array("id"=>$vo["id"]))}'>修改</a>
                            |
                            <a class="js-ajax-delete" href="{:U('department/delete',array('id'=>$vo['id']))}">删除</a>
                        </td>
                    </tr>
                </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
</body>
</html>